package cn.com.wangluotongxin.member.service;

import cn.com.wangluotongxin.common.pojo.LoginUser;
import cn.com.wangluotongxin.member.form.MemberInfoAuthForm;
import cn.com.wangluotongxin.member.form.MemberInfoRegisterForm;
import cn.com.wangluotongxin.member.form.MemberInfoUpdateForm;
import cn.com.wangluotongxin.member.model.MemberInfo;
import cn.com.wangluotongxin.member.vo.MemberCheckPhoneVo;
import cn.com.wangluotongxin.member.vo.MemberInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 网络通信-用户信息 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-11-23
 */
public interface IMemberInfoService extends IService<MemberInfo> {

    String getToken(String username, String password);

    String getToken(String phone);

    MemberInfoVo getInfo(Integer memberId);

    void updateInfo(MemberInfoUpdateForm form, LoginUser loginUser);

    void register(MemberInfoRegisterForm form);

    void memberAuth(MemberInfoAuthForm form, Integer memberId);

    void logout(Integer memberId);

    MemberCheckPhoneVo checkPhone(String phone);
}
